Looks like there may be another visitor with a name like "<%= @name %>". <br /><br />
Please select the correct one below: <br />
<!--
<form>
  <select name="visitor_selection" size="<%= @visitor.size %>">
<% @visitor.each do |v| %>
                    <option value="<%= v.id %>"><%= "#{v.name} - #{v.phone}" %></option>
<% end %>
  </select><br />
<%= submit_tag "This is me." %>
</form>
-->

<% @visitor.each do |v| %>
  <div class="select_item" id="visitor_<%= v.id %>" style="border: 1px solid gray; margin-bottom: 10px; padding: 10px; background: #f2f2f2">
    <strong>Name:</strong> <%= v.name %> <br />
    <%= "<strong>Phone:</strong> #{v.hidden_phone} <br />" if !v.phone.blank? %>
    <%= "<strong>Email:</strong> #{v.hidden_email} <br />" if !v.email.blank? %>
    <!-- <i>last visit: <%= time_ago_in_words(v.updated_at) %> ago</i> -->
    <div class="buttons">
      <%= link_to "This is me", visitors_attend_path(v), :class => "button1", :style => "background: #c4c4c4; border: 1px solid gray; text-decoration: none; padding: 3px; position: relative; bottom: 3px;" %>
    </div>
  </div>
<% end %>
<br />
<div class="buttons">
  <%= link_to "I am not on this list", new_visitor_path(:name => @name), :class => "", :style => "background: #f6f6f6; border: 1px solid gray; text-decoration: none; padding: 3px; font-color: inherit" %>
</div>

